fromPoints
fun fromPoints(p1: Vec2, p2: Vec2, precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Line2(source)
Creates a line from two points.
Return
A new Line2 instance representing the line through the two points.
Parameters
p1
The first point.
p2
The second point.
precision
The precision used for geometric computations, defaulting to DEFAULT_DOUBLE_EQUIVALENCE.
Throws
if the two points are the same (resulting in a zero direction vector).